#pragma once
#include "Octree.h"


class OctreeVisualizer
{
public:

	OctreeVisualizer ();
	~OctreeVisualizer ();

	void initialize (Octree *p_octree);
	void clean ();

	void process (Octree *p_octree);
	void visualize (Octree *p_octree, ID3D11Buffer *p_dxConstBuf);

private:
	
	QD3DResourcePack *_p_verticesForVisualPack;

	ID3D11InputLayout *_p_verticesBufDxLayout;
	ID3D11ComputeShader *_p_visualizeOctreeCS;
	ID3D11VertexShader *_p_drawOctreeVS;
	ID3D11PixelShader *_p_drawOctreePS;
};

